register Lenient S2C
registers a client-bound (S2C) payload type and receipt handler. This does not have to be done on both server and client (hence lenient). This allows for clients without Fzzy Config to connect to a server with mods that register connections this way. A common entrypoint is typically the best place for registering this. * @param T the payload type to register
Author
fzzyhmstrs
Since
0.6.6, 0.6.5-fix1 for Forge 1.20.1
Parameters
CustomPayload.Id the id of the custom payload
PacketCodec the packet codec for serializing the custom payload
S2CPayloadHandler a handler for dealing with receiving the payload. This handler will be on the client handling a payload received from the server. As such, take care with your client-only class references, pushing them to a method to reference, perhaps.